package com.smart.draw.plantuml.service;

import com.google.common.collect.Lists;
import com.smart.draw.plantuml.common.KeyValObj;
import com.smart.draw.plantuml.common.PlantUmlType;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author xiaoqiang
 * @Version PlantUmlTypeService.java, v 0.1 2025年08月31日 13:29 xiaoqiang
 * @Description: TODO
 */
@Service
public class PlantUmlTypeService {

    public List<KeyValObj> getPlantUmlTypes(){
        List<KeyValObj> list = Lists.newArrayList();
        for (PlantUmlType type : PlantUmlType.values()) {
            list.add(new KeyValObj(type.getType(), type.getDesc()));
        }
        return list;

    }

}
